package com.lagou.edu.service;

import com.lagou.edu.pojo.User;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {



    /**
     * @Description: 用户登录
     * @Author: chendong
     * @Date: 2021/2/3
     **/
    Boolean login(HttpServletRequest request, HttpServletResponse response,String email,String password) throws Exception;

    /**
     * @Description: 根据jwt获取用户的邮箱
     * @Author: chendong
     * @Date: 2021/2/3
     **/
    String getEmailByJwt(String jwtToken) throws Exception;

    /**
     * @Description: 用户注册
     * @Author: chendong
     * @Date: 2021/2/4
     **/
    Integer register(String email,String password, String code);


}
